// 小工具集合
export const tools = [
  {
    title: "excel数据导入导出",
    type: "离线",
    path: "/tools/excel",
    name: "tools_excel",
  },
  {
    title: "字体压缩",
    type: "在线",
    path: "/tools/iframe",
    name: "tools_iframe",
    url: "https://www.fontspider.vip",
  },
  {
    title: "二维码生成",
    type: "离线",
    path: "/tools/qrcode",
    name: "tools_qrcode",
  },
];

/**
 * 根据工具类型筛选工具列表
 *
 * @param {string} type 工具类型
 * @returns {Array} 筛选后的工具列表
 */
export const tools_list = (type) => {
  return tools.filter((item) => item.type === type);
};
